package com.example.api.service.impl;

import com.example.api.dao.CompanyDao;
import com.example.api.model.entity.Company;
import com.example.api.service.CompanyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Resource
    private CompanyDao companyDao;

    @Override
    public List<Company> findAll(String name) {
        return companyDao.findAll(name);
    }

}
